package actors {
	import common.FMath;
	
	import flash.display.Sprite;
	
	public class Crud extends Actor {
		public function Crud() {
			super();

			_size = Math.random() * 2;
			_ageMax = 7500;
			_energy = _size * 2000;
			_friction = Math.random();
			_accel = 0;
			_speed = 0;
			_rotation = 0;
			_x = Math.random() * _tank.width;
			_y = 0;
			
			generateGraphic();
//			_graphic.cacheAsBitmap = true;
		}
		
		override protected function generateGraphic():void {
			var sprite:Sprite = new Sprite();
			sprite.graphics.lineStyle(1, FMath.randColor);
			FMath.drawArc(sprite.graphics, 0, 0, _size, 1, -1, _size + 10);

			_graphic = sprite;
		}
	}
}
